package com.service.basic.support;

import java.io.Serializable;
import java.util.List;

import com.dao.basic.ISALMDao;
import com.pojo.basic.SALM;
import com.service.basic.ISALMService;

public class SALMService implements ISALMService {
	
	private ISALMDao salmDao;
	
	public void setSalmDao(ISALMDao salmDao) {
		this.salmDao = salmDao;
	}

	public List<SALM> findAllSALM() {
		return salmDao.findAllSALM();
	}

	public List<SALM> searchAllSALM(String dept, String keyword) {
		if(dept.equals("00000000")){
			return this.findAllSALM();
		}
		return salmDao.searchAllSALM(dept, keyword);
	}

	public SALM get(Serializable id) {
		return salmDao.get(id);
	}

}
